<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="65px;">序号</td>
                <td class="text-center">打位名称</td>
                <td class="text-center">打位号</td>
                <td class="text-center">所属店铺</td>
                <td class="text-center">平时价格</td>
                <td class="text-center">周末价格</td>
                <td class="text-center" width="85px;">打位开关</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$list.positionId}</td>
                    <td class="text-center">{$list.positionName}</td>
                    <td class="text-center">{$list.positionNo}</td>
                    <td class="text-center">{$list.shopName}</td>
                    <td class="text-center">
                        上午：{$list.peacetimePriceAm}(元)&ensp;下午：{$list.peacetimePricePm}(元)&ensp;晚间：{$list.peacetimePriceNight}(元)
                        <p>会员上午：{$list.memberPeacetimePriceAm}(元)&ensp;会员下午：{$list.memberPeacetimePricePm}(元)&ensp;会员晚间：{$list.memberPeacetimePriceNight}(元)</p>
                    </td>
                    <td class="text-center">
                        上午：{$list.weekendPriceAm}(元)&ensp;下午：{$list.weekendPricePm}(元)&ensp;晚间：{$list.weekendPriceNight}(元)
                        <p>会员上午：{$list.memberWeekendPriceAm}(元)&ensp;会员下午：{$list.memberWeekendPricePm}(元)&ensp;会员晚间：{$list.memberWeekendPriceNight}(元)</p>
                    </td>
                    <td class="text-center">
                        <img width="20" height="20" src="__PUBLIC__/images/<if condition='$list.positionStatus eq 1'>yes.png<else />cancel.png</if>" onclick="changeTableVal('position','positionId','{$list.positionId}','positionStatus',this)"/>
                    </td>
                    <td class="text-center">
                        <a href="javascript:;" onclick="layerAlert('编辑打位', '{:U('position/edit', array('positionId' => $list.positionId))}', '70%', '85%')" class="btn btn-primary" title="编辑"><i class="fa fa-pencil"></i></a>
                        <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('position/del')}" data-id="{$list.positionId}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>